package org.vectrics.common.html;


import org.apache.ecs.html.Table;
import java.util.*;
import org.apache.log4j.Category;

 
 
public class BorderRow extends Row {
    private static Category log = Category.getInstance(BorderRow.class);
    
    Table innerTable = null;
    
    public BorderRow() {
        super();
    }
    
    public Cell addCell() {
        log.debug("addCell() - called");
        BorderCell cell = new BorderCell();
        log.debug("addCell() - adding new cell to this row");
        cell.setDefaultFontClass(this.getDefaultCellFontClass());

        if (this.getDefaultBgImage() != null) {
        	cell.setBackground(this.getDefaultBgImage());
        } else {
            cell.setClass(this.getDefaultCellClass());
        }
        this.addElement(cell);
        return(cell);
    }

}